Git Repository not found ์—๋Ÿฌ ํ•ด๊ฒฐ with ์ธํ…”๋ฆฌ์ œ์ด ๋‹จ์ถ•ํ‚ค

2021. 7. 16. 16:18ใ†๐Ÿ†‡ Error&๊ธฐํƒ€

โš ๏ธ ์—๋Ÿฌ ์ƒํ™ฉ

ํ”„๋กœ์ ํŠธ organization์— ์ดˆ๋Œ€๋ฐ›๊ณ , ๋ฆฌ๋“œ ๊ฐœ๋ฐœ์ž ๋ถ„๊ป˜์„œ private ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ํ•˜๋‚˜ ์ƒ์„ฑํ•˜์—ฌ ์ดˆ๊ธฐ ์„ธํŒ…์„ ํ•œ ์ƒํƒœ์—์„œ git clone์„ ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ํ•œ์ฐธ ๋กœ์ปฌ์—์„œ ์ž‘์—…ํ•˜๋‹ค Intellij ๋‹จ์ถ•ํ‚ค๋กœ git push๋ฅผ ํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ ํ•ด๋‹น ์—๋Ÿฌ๊ฐ€ ๋‚˜๋ฉด์„œ ์ ฏ๋ธŒ๋ ˆ์ธ์„ ํ†ตํ•ด ๊นƒํ—™ ๋กœ๊ทธ์ธ์„ ํ•˜๋ผ๋Š” ์ฐฝ๋งŒ ์ž๊พธ ๋‚˜ํƒ€๋‚ฌ์Šต๋‹ˆ๋‹ค.

 remote: Repository not found.fatal: repository 'https://github.com/organization /repositoryName.git/' not found 

๋’ค๋Šฆ๊ฒŒ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์—์„œ ์ œ ๊ถŒํ•œ์ด read์˜€๋‹ค๋Š” ๊ฑธ ์•Œ๊ณ , ๊ถŒํ•œ ์ˆ˜์ •์„ ๋ถ€ํƒ๋“œ๋ ค์„œ admin์œผ๋กœ ๋ฐ”๊ฟจ์ง€๋งŒ ์—ฌ์ „ํžˆ ๊ฐ™์€ ์—๋Ÿฌ๋ฅผ ๋‚ด๊ณ  ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ๋ ˆํฌ์˜ admin๊ถŒํ•œ์„ ๋ฐ›๊ณ , keyChain์—์„œ credential๋„ ์ง€์›Œ๋ณด๊ณ , git clone์„ github ์ด๋ฆ„์œผ๋กœ ๋‹ค์‹œ ๋ฐ›์•„๋ณด๊ณ , git remote ๋กœ ์›๊ฒฉ ๋ ˆํฌ ์„ค์ •์„ ๋‹ค์‹œ ํ•ด๋ณด์•˜์ง€๋งŒ ์—ฌ์ „ํžˆ ํ•ด๊ฒฐ๋˜์ง€๋Š” ์•Š์•˜์Šต๋‹ˆ๋‹ค.

 

.... ๊ทธ๋ž˜์„œ Github Docs์—์„œ ๊ถŒ์žฅํ•˜๋Š” ๊ถŒํ•œ ์‚ฌํ•ญ์„ ์ฒดํฌํ•ด๋ณด์•˜์Šต๋‹ˆ๋‹ค.

 

1. organization, repository ๊ถŒํ•œ ์ฒดํฌ

๋จผ์ € 1์ฐจ์ ์œผ๋กœ organization Owner์—๊ฒŒ member๋Œ€์‹  Owner ๊ถŒํ•œ์„ ๋ฐ›๊ณ , Repository์—๋„ ๊ถŒํ•œ์„ Admin์œผ๋กœ ๋ฐ›์œผ์…จ๋Š”์ง€ ์ฒดํฌํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ์ € ๊ฐ™์€ ๊ฒฝ์šฐ์—๋Š” ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋Š” admin์„ ๋ฐ›์•˜์ง€๋งŒ, organization์€ Member๋กœ ๋˜์–ด์žˆ์–ด์„œ push๊ฐ€ ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

๋งŒ์•ฝ organization์—์„œ Owner ๊ถŒํ•œ์„ ๋ฐ›์•˜๋‹ค๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ™”๋ฉด์ด ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

Repository์—์„œ๋„ Admin ๊ถŒํ•œ์„ ๋ฐ›์œผ๋ฉด Settings๊ฐ€ ๋ณด์ž…๋‹ˆ๋‹ค.



2. Intellij ๋‹จ์ถ•ํ‚ค๋กœ git push

๊ถŒํ•œ์„ ๋‹ค ๋ฐ›๊ณ ๋‚˜๋‹ˆ, ํ„ฐ๋ฏธ๋„์—์„œ๋Š” git push origin branch๋ช… ํ•ด์„œ git push๊ฐ€ ๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค.

ํ•˜์ง€๋งŒ ์—ฌ์ „ํžˆ ์ œ๊ฐ€ ์ž์ฃผ ์“ฐ๋Š” ์ธํ…”๋ฆฌ์ œ์ด ๋‹จ์ถ•ํ‚ค cmd + shift + k๋กœ๋Š” push๋ฅผ ๋ชปํ•˜๊ณ  ๊นƒํ—™ ๋กœ๊ทธ์ธ ํ™”๋ฉด๋งŒ ์ž๊พธ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

 

์ด ๋•Œ push ๋งˆ๋‹ค ๋กœ๊ทธ์ธ์„ ๋ฌป์ง€ ์•Š๋„๋ก git credential์„ ์„ค์ •ํ•ด์ฃผ๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค๊ณ  ํ•˜๋Š”๋ฐ,

Intellij IDEA > preferences > git ์œผ๋กœ ๋“ค์–ด๊ฐ€์„œ credential helper๋ฅผ ์ฒดํฌํ•ด์ฃผ๋ฉด ๋‹จ์ถ•ํ‚ค๋กœ๋„ push๊ฐ€ ์ž˜ ๋˜๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

 

์ฐธ๊ณ ๋ฅผ ์œ„ํ•ด ๋ง์”€๋“œ๋ฆฌ๋ฉด git remote๋กœ ํ•ด๊ฒฐํ•˜์‹  ๋ถ„๋„ ๊ณ„์‹œ๊ณ , ๋…ธํŠธ๋ถ์— ์ €์žฅ๋˜์–ด์žˆ๋Š” Credential์„ ์ง€์šฐ๊ณ  ์žฌ์„ค์น˜ํ•ด์„œ ํ•ด๊ฒฐํ•˜์‹  ๋ถ„๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์ € ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ๋ฆฌ๋“œ ๊ฐœ๋ฐœ์ž๋กœ๋ถ€ํ„ฐ ๊ถŒํ•œ์„ ๋‹ค ๋ฐ›์ง€ ๋ชปํ–ˆ์—ˆ๊ธฐ ๋•Œ๋ฌธ์— ํ•ด๋‹น ์—๋Ÿฌ๊ฐ€ ์ž๊พธ ๋‚ฌ๋˜ ๊ฒƒ์ด๋ผ ๋งŒ์•ฝ ๋ช…๋ น์–ด๋กœ ํ•ด๊ฒฐ์ด ๋˜๋Š” ์ผ€์ด์Šค์ด์‹  ๋ถ„๋“ค์€ ์•„๋ž˜ ๊ธ€๋“ค์„ ์ฐธ๊ณ ํ•˜์‹œ๋ฉด ๋„์›€์ด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

 

๐Ÿ‘‰ git remote...๋กœ ํ•ด๊ฒฐํ•˜๊ธฐ

git remote remove origin           
git remote origin add http://๊นƒํ—™์•„์ด๋””@github/์˜ค๊ฑฐ์ด๋ฆ„/๋ ˆํฌ์ด๋ฆ„.git   
git remote set-url origin http://๊นƒํ—™์•„์ด๋””@github/์˜ค๊ฑฐ์ด๋ฆ„/๋ ˆํฌ์ด๋ฆ„.git

 

 

 

 

๐Ÿ“š ์ฐธ๊ณ ๋ฌธํ—Œ
https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository-from-github/error-repository-not-found
https://docs.github.com/en/enterprise-server@3.0/organizations/managing-peoples-access-to-your-organization-with-roles/permission-levels-for-an-organization

https://leebaro.tistory.com/entry/Intellij%EC%97%90%EC%84%9C-git-push%EA%B0%80-%EC%95%88%EB%90%98%EB%8A%94-%EA%B2%BD%EC%9A%B0